import { createApp } from "vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import App from "./App.vue";
import router from "./router";
import directives from "./directives";
import axios from "axios";
import "./utils/mdCodeTheme";
import "element-plus/dist/index.css";
import "./assets/css/main.css";

const app = createApp(App);
app.config.globalProperties.$axios = axios;
app.config.globalProperties.$mag = 'helllo';

Object.keys(directives).forEach((key) => {
    app.directive(`${key}`, directives[key]);
})

app.use(router);
app.use(ElementPlus);
app.mount("#app");
